const express = require('express')
const router = express.Router();
const {db, genid} = require('../db/index')

router.get('/test', async (req, res) => {
    const sql = 'select * from admin'
    let results = await db.async.query(sql, [])
    res.send({
        id: genid.NextId(),
        results
    })
})

module.exports = router